projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1687f3e
)
gnomeos: Add --skip-if-unchanged for yocto commit, also show a diff after building
author
Colin Walters
<walters@verbum.org>
Fri, 23 Dec 2011 12:45:13 +0000
(07:45 -0500)
committer
Colin Walters
<walters@verbum.org>
Fri, 23 Dec 2011 12:45:13 +0000
(07:45 -0500)
We don't want to make new commits if nothing changed.
gnomeos/yocto/commit-yocto-build.sh
patch
|
blob
|
history
diff --git
a/gnomeos/yocto/commit-yocto-build.sh
b/gnomeos/yocto/commit-yocto-build.sh
index 2778847f9dfd767e9018a43fcbaeb98467f207ae..f622d36a99c77a1748eee80ff26f2bfc52fa8702 100755
(executable)
--- a/
gnomeos/yocto/commit-yocto-build.sh
+++ b/
gnomeos/yocto/commit-yocto-build.sh
@@
-37,4
+37,5
@@
BUILD_TAR=$BUILDDIR/deploy/images/gnomeos-contents-$BRANCH-qemu${ARCH}.tar.gz
BUILD_TIME=$(date -r $BUILD_TAR)
-ostree --repo=${OSTREE_REPO} commit -s "Build from OSTree ${OSTREE_VER}" -b "gnomeos-yocto-$ARCH-$BRANCH" --tree=tar=${BUILD_TAR}
+ostree --repo=${OSTREE_REPO} commit --skip-if-unchanged -s "Build from OSTree ${OSTREE_VER}" -b "gnomeos-yocto-$ARCH-$BRANCH" --tree=tar=${BUILD_TAR}
+ostree --repo=${OSTREE_REPO} diff "gnomeos-yocto-$ARCH-$BRANCH"^ "gnomeos-yocto-$ARCH-$BRANCH"